package com.abocode.aichat.getway.worker;

import com.abocode.aichat.server.reply.Replies;
import com.abocode.aichat.server.stanza.Stanza;
import com.abocode.aichat.server.stanza.StanzaHandler;
import com.abocode.aichat.server.worker.StanzaWorker;
import io.netty.channel.Channel;

/**
 * Created by franky-21.
 */
public class GatewayStanzaWorker extends StanzaWorker {

    @Override
    public void execute(Channel channel, Stanza stanza) {
        StanzaHandler stanzaHandler = stanzaHandlerContext.get(stanza);
        Replies replies = stanzaHandler.handler(null, stanza);
//        serverRuntimeContext.getControlServerDeliver().getInboundServerDeliver().deliver(replies, stanza);
    }
}
